package org.sfx.rich

import java.lang.reflect.Field
import java.lang.reflect.Type

case class RichField(val underlying: Field) {
  def isEnumConstant: Boolean = underlying.isEnumConstant()
  def _type: Class[_] = underlying.getType()
  def genericType: Type = underlying.getGenericType()
  def genericString: String = underlying.toGenericString()
  def of(subject: Object): FieldAccessor = FieldAccessor(underlying, subject)
}
